<template>
    <CommonContainer title="CRC意见">
        <el-form ref="crcform" :model="form" label-width="120px" :rules="rules">
            <el-form-item label="是否提交CRC:" prop="ifCrc">
                <el-radio-group v-model="form.ifCrc">
                    <el-radio :label="1">是</el-radio>
                    <el-radio :label="2">否</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="CRC审批说明:" prop="crcRemark">
                <el-input type="textarea" v-model="form.crcRemark" placeholder="请输入CRC审批说明"></el-input>
            </el-form-item>
            <el-form-item label="附件:" class="form-img" style="margin-top: 40px">
                <image-common info="上传附件" up-type="3" :limit="20" v-model="form.crcAnnex"></image-common>
            </el-form-item>
        </el-form>
    </CommonContainer>
</template>

<script>
export default {
    components: {},
    props: {},
    data() {
        // 这里存放数据
        return {
            form:{
                id:this.$route.query.id,
                ifCrc:1,
                crcRemark:null,
                crcAnnex:null

            },
            rules: {
                ifCrc: [
                    {required: true, message: '请选择是否提交CRC', trigger: 'change'},
                ],
                // crcRemark: [
                //     {required: true, message: '请输入CRC审批说明', trigger: 'change'},
                // ]
            }
        }
    },
    // 方法集合
    methods: {
        saveSubmit() {
            // this.$refs['crcform'].validate((valid) => {
            //     if (valid) {
            //          return this.form
            //     }
            // })
            return this.form

        },
    },
    // 生命周期 - 挂载完成（可以访问 DOM 元素）
    mounted() {
    },

}
</script>

<style lang="scss" scoped>
</style>
